import { createApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import PiniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import router from '@/router'

// 定义懒加载插件
import { imgLazy } from '@/directives/imgLazy'
import '@/styles/common.scss'

const pinia = createPinia()
pinia.use(PiniaPluginPersistedstate)
const app = createApp(App)
app.use(pinia).use(router).use(imgLazy).mount('#app')
